package cn.jiedanba.cacert.common.ca.ocsp.domain;

import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.Date;

import org.bouncycastle.cert.ocsp.OCSPReq;
import org.bouncycastle.cert.ocsp.Req;

import lombok.Data;

@Data
public class OCSP {

	/**
	 * 证书状态
	 */
	private String status;

	/**
	 * 吊销原因
	 */
	private int revokeReason;

	/**
	 * 吊销时间
	 */
	private Date revokeDate;

	/**
	 * ocsp签名证书
	 */
	private X509Certificate ocspSignCert;

	/**
	 * ocsp私钥
	 */
	private PrivateKey ocspPk;

	/**
	 * 下次更新时间
	 */
	private Date nextUpdate;

	private OCSPReq ocspReq;
	private Req[] requests;
}
